<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>跨域测试</title>
<link href="/css/index.css" rel="stylesheet" />
</head>
<body>
   <button id="test">测试</button>
   <script type="text/javascript" src="/static/jquery-2.1.4.min.js"></script>
   <script type="text/javascript">
      $(function(){
    	 $("#test").on("click",function(){
    		 $.ajax({
    			 "url":"http://localhost:8080/fastjson/test",
    			 "type":"get",
    			 "dataType":"json",
    			 "success":function(data){
    				 console.log(data);
    			 }
    		 })
    	 });
      });
   </script>
</body>
</html>